
import * as React from 'react'
import { constants } from 'http2';

const initState = {
    msg: 'Hello world!',
    text: 'Home'
}
type State = Readonly<typeof initState>

class Home extends React.Component<{}, State> {

    readonly state: State = initState

    click() {
        alert(this.state.msg)
    }

    render() {
        return (
            <div onClick={ this.click.bind(this) } className="home">{ this.state.text }</div>
        )
    }
}

export default Home
